package com.fenyin.samples.study.jdk.datastruct.stack;  

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
  
public class StackTest {
	
	private static final Log log = LogFactory.getLog(StackTest.class);
	
	private static void linkedStackTest(){
		LinkedStack<String> stack = new LinkedStack<String>();
		stack.push("fengzhichao1");
		stack.push("fengzhichao2");
		log.info("linkedStackTest index "+stack.pop());
		stack.push("fengzhichao3");
		log.info("linkedStackTest index "+stack.pop());
		log.info("linkedStackTest index "+stack.pop());
		
	}
	
	public static void main(String[] args){
		linkedStackTest();
	}
	
}
